home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD School House 10
/
CD School House - Education and Games (10.0) - Wayzata Technology (1995).iso
/
mac
/
DOS
/
MATH
/
MRCRY209
/
GIBBS.EKA
< prev
next >
Wrap
Text File
|
1992-11-04
|
392b
|
17 lines
; Graphic demo of Gibbs phenomenon.
; Fourier series convergence is slowest near discontinuities.
; the function
f(x) := SUM(SIN((2n+1)x)/(2n+1),n,0,20)*4/PI
; the domain for the plot
GBOUNDS 0, PI
PLOT f
; Some commands which make the plot look nicer.
GSTYLE 1
GPOINTS 100
TITLE "Gibbs phenomenon"
SUBTITLE "for the square wave"
YLABEL "20 Fourier terms"